import { createRouter, createWebHistory } from 'vue-router'

//导入组件
import LoginVue from '@/views/Login.vue'
import LayoutVue from '@/views/Layout.vue'


import DataChannelManageVue from '@/views/data/DataChannelManage.vue'
import DataHistoryManageVue from '@/views/data/DataHistoryManage.vue'

import QuestionManageVue from '@/views/question/QuestionManage.vue'
import KnowledgeManageeVue from '@/views/question/KnowledgeManage.vue'

import QuestionDataManage from '@/views/question/QuestionDataManage.vue'
import KnowledgeDataManage from '@/views/question/KnowledgeDataManage.vue'



import OrderMemberManageVue from '@/views/order/OrderMemberManage.vue'

import setupVersionSeasonManageVue from '@/views/setup/setupVersionSeasonManage.vue'
import setupLevelManageVue from '@/views/setup/setupLevelManage.vue'
import setupMilestoneManageVue from '@/views/setup/setupMilestoneManage.vue'

import interestUserDataManage from '@/views/interest/interestUserDataManage.vue'
import interestCircleManage from '@/views/interest/interestPublishDataManage.vue'
import interestPublishRecordManage from '@/views/interest/interestPublishRecordManage.vue'


import TeachingPointManage from '@/views/point/TeachingPointManage.vue'

import UserPointManage from '@/views/point/UserPointManage.vue'

import TeachingPointDetailManage from '@/views/point/TeachingPointDetailManage.vue'

import interestPopularManage from '@/views/interest/interestPopularManage.vue'

import interestFriendsManage from '@/views/interest/interestFriendsManage.vue'

import userAccountManage from '@/views/account/userAccountManage.vue'

import LogTraceManage from '@/views/log/LogTraceManage.vue'

import BrowseManage from '@/views/browse/BrowseManage.vue'
import userTreeHoleManage from '@/views/treeHole/userTreeHoleManage.vue'

import ActivityResourceManage from '@/views/activity/ActivityResourceManage.vue'

import ActivityManage from '@/views/activity/ActivityManage.vue'

import LotteryManage from '@/views/lottery/LotteryManage.vue'

import LotteryResourceManage from '@/views/lottery/LotteryResourceManage.vue'

import WorldResourceManage from '@/views/world/WorldResourceManage.vue'


import ShipManage from '@/views/home/ShipManage.vue'

import ShipLevelManage from '@/views/home/shipLevelManage.vue'


import TreeManage from '@/views/home/TreeManage.vue'

import TreeShapeManage from '@/views/home/TreeShapeManage.vue'

import TreeLevelManage from '@/views/home/TreeLevelManage.vue'


import BackgroundManage from '@/views/home/BackgroundManage.vue'

import MessageResourceManage from '@/views/home/MessageResourceManage.vue'

import BackgroundEffectsManage from '@/views/home/BackgroundEffectsManage.vue'

import shipKnowledgeManage from '@/views/home/shipKnowledgeManage.vue'



import resourcePublishManage from '@/views/resource/resourcePublishManage.vue'
import resourceInformationManage from '@/views/resource/resourceInformationManage.vue'
import resourceMemberOrderManage from '@/views/resource/resourceMemberOrderManage.vue'
import resourceInterestConfigManage from '@/views/resource/resourceInterestConfigManage.vue'


const routes = [
    { path: '/login', component: LoginVue },
    {
        path: '/', component: LayoutVue,redirect:'/interest/publishRecord', children: [

            { path: '/data/history', component: DataHistoryManageVue },
            { path: '/data/channel', component: DataChannelManageVue },

            { path: '/order/member', component: OrderMemberManageVue },

            { path: '/interest/publishData', component: interestCircleManage },
            { path: '/interest/userData', component: interestUserDataManage },
            { path: '/interest/publishRecord', component: interestPublishRecordManage },
            { path: '/interest/popular', component: interestPopularManage },

            { path: '/interest/friends', component: interestFriendsManage },
            { path: '/user/treeHole', component: userTreeHoleManage },

            { path: '/user/account', component: userAccountManage },

            { path: '/resource/publish', component: resourcePublishManage },
            { path: '/resource/information', component: resourceInformationManage },
            { path: '/resource/memberOrder', component: resourceMemberOrderManage },
            { path: '/resource/interestConfig', component: resourceInterestConfigManage },

            { path: '/setup/versionSeason', component: setupVersionSeasonManageVue },
            { path: '/setup/level', component: setupLevelManageVue },
            { path: '/setup/milestone', component: setupMilestoneManageVue },

            { path: '/log/trace', component: LogTraceManage },

            { path: '/browse/userBrowse', component: BrowseManage },

            { path: '/activity/activity', component: ActivityManage },

            { path: '/activity/resource', component: ActivityResourceManage },

            { path: '/lottery/lottery', component:  LotteryManage},

            { path: '/lottery/resource', component:  LotteryResourceManage},

            { path: '/world/messageResource', component:  WorldResourceManage},


            { path: '/home/ship', component:  ShipManage},

            { path: '/home/ship/level', component:  ShipLevelManage},

            { path: '/home/ship/knowledge', component:  shipKnowledgeManage},




            { path: '/home/tree', component:  TreeManage},

            { path: '/home/tree/shape', component:  TreeShapeManage},


            { path: '/home/tree/level', component:  TreeLevelManage},



            { path: '/home/background', component: BackgroundManage },

            { path: '/home/backgroundEffects', component: BackgroundEffectsManage },

            { path: '/home/message/resource', component: MessageResourceManage },



            { path: '/point/teaching', component: TeachingPointManage },

            { path: '/point/teachingDetail', component: TeachingPointDetailManage },

            { path: '/point/user', component: UserPointManage },


            { path: '/question/question', component: QuestionManageVue },
            { path: '/question/questionData', component: QuestionDataManage },
            { path: '/question/knowledgeData', component: KnowledgeDataManage },
            { path: '/question/knowledge', component: KnowledgeManageeVue }

        ]
    }
]



//创建路由器
const router = createRouter({
    history: createWebHistory(),
    routes: routes
})

//导出路由
export default router